import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ClientsModule, Transport } from '@nestjs/microservices';
import { GatewayController } from './gateway.controller';

@Module({
  imports: [
    ClientsModule.register([{
      name:"sum_service",
      transport:Transport.TCP,
      options:{
        host:"localhost",
        port:8888
      }
    }]),
  ],
  controllers: [AppController,GatewayController],
  providers: [AppService],
})
export class AppModule {}
